package com.example.loopyserver.server.impl;

import com.example.loopyserver.dao.repository.KeywordRepository;
import com.example.loopyserver.po.KeywordRelationPO;
import com.example.loopyserver.server.KnowledgeGraphService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
@RequiredArgsConstructor
public class KnowledgeGraphServiceImpl implements KnowledgeGraphService {
    private final KeywordRepository keywordRepository;

    @Override
    public List<KeywordRelationPO> getAssociatesForKeywordInText(String keyword) {
        return keywordRepository.getKeywordRelations(keyword);
    }
}
